2021.03.07: added ABdist
2016.08.22








enu:

queuing
  (2nd(1st))
  (1st)(2nd)
  CALCULATE_LEFT_TO_RIGHT = 0 build: 1 shl 2 shl 3 = 1 shl (2 shl 3) = 1 shl 16 = 65'536
  CALCULATE_LEFT_TO_RIGHT = 1 build: 1 shl 2 shl 3 = (1 shl 2) shl 3 = 4 shl  3 =     32

operator priority 1 (less implies later call)
           arg &  arg - boolean and, returns 1 if both   1
           arg |  arg - boolean or , returns 1 if either 1

operator priority 2
           arg  = arg - boolean equal
           arg >  arg - boolean greater
           arg >= arg - boolean greater or equal
   arg isin arg1 arg2 - arg in [arg1 .. arg2] ?
           arg <  arg - boolean less
           arg <= arg - boolean less or equal
                ~ arg - boolean not
           arg <> arg - boolean not equal

operator priority 3
          [arg]+  arg - addition
          [arg]-  arg - subtraction

operator priority 4
           arg /  arg - division
           arg *  arg - multiplication

operator priority 5
               ABdist   AxAy0|Az BxBy0|Bz
                      - returns 2d (0z) or 3d distance between two dots
              abs arg - always returns positive
     ArcTan argX argY - returns degree in radians between x-axis and a point(argX;argY)
          arg and arg - as if those si64, bitwise AND
            avrg args - (arg0 + .. + arg?) / arg count
         bitc dst off - as if those si64, complement (xor) offset bit
         bitr dst off - as if those si64, restore     (0)  offset bit
         bits dst off - as if those si64, set         (1)  offset bit
         bitt dst off - as if those si64, test if set (1)  offset bit
   ClockArrowSinCos \
      'sin'|'cos' arg - time2 file shows that
              cos arg - for specified angle in radians, return x/r relation in a circle|triangle
          deg2rad arg - degrees to radians ie *pi/180
            .frac arg - chops integral leaving fraction
             int. arg - chops fraction leaving integral
             log2 arg - binary logarithm  (~bits/value)
            log10 arg - decimal logarithm
          arg mod arg - as if those si64, returns remainder of division of the two args
              not arg - as if those si64, bitwise NOT
           arg or arg - as if those si64, bitwise OR
            arg ^ arg - raises a value to specified power
          rad2deg arg - radians to degrees ie *180/pi
          arg shl arg - as if those si64, <shift to the left<
          arg shr arg - as if those si64, >shift to the right>
              sin arg - for specified angle in radians, return y/r relation in a circle|triangle
             sqrt arg - arg^0.5, square root
          arg xor arg - as if those si64, bitwise addition without carriage propagation

constant operator priority
                   pi - constant 3.1415...
               log210 - constant log2 10
               log102 - constant log10 2








rus:

|
  (2(1))
  (1)(2)
  CALCULATE_LEFT_TO_RIGHT = 0 build: 1 shl 2 shl 3 = 1 shl (2 shl 3) = 1 shl 16 = 65'536
  CALCULATE_LEFT_TO_RIGHT = 1 build: 1 shl 2 shl 3 = (1 shl 2) shl 3 = 4 shl  3 =     32

   1 ( -  )
           arg &  arg -    ,  1   
           arg |  arg -  ,  1   

   2
           arg  = arg - ?
           arg >  arg - ?
           arg >= arg - -?
   arg isin arg1 arg2 - arg in [arg1 .. arg2] ?
           arg <  arg - ?
           arg <= arg - -?
                ~ arg - 
           arg <> arg -  ?

   3
          [arg]+  arg - 
          [arg]-  arg - 

   4
           arg /  arg - 
           arg *  arg - 

   5
               ABdist   AxAy0|Az BxBy0|Bz
                      - 2d (0z)  3d    
              abs arg -  
     ArcTan argX argY -       x-  (argX;argY)
          arg and arg -   si64,  
            avrg args - (arg0 + .. + arg?) / arg count
         bitc dst off -   si64, complement (xor) offset 
         bitr dst off -   si64,     (0)  offset 
         bits dst off -   si64,   (1)  offset 
         bitt dst off -   si64, ? (1)  offset 
   ClockArrowSinCos \
      'sin'|'cos' arg - .  time2
              cos arg -     ,   x/r   |
          deg2rad arg -     *pi/180
            .frac arg -  ,  
             int. arg -  ,  
             log2 arg - ~    ,    
            log10 arg -  
          arg mod arg -   si64,   
              not arg -   si64,  
           arg or arg -   si64,  
            arg ^ arg -   
          rad2deg arg -     *180/pi
          arg shl arg -   si64, <  <
          arg shr arg -   si64, >  >
              sin arg -     ,   y/r   |
             sqrt arg - arg^0.5,  
          arg xor arg -   si64,     

   
                   pi - constant 3.1415...
               log210 - constant log2 10
               log102 - constant log10 2
